﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MapEditor
{
    class Log
    {
        public static void error(string line)
        {
            System.IO.StreamWriter file = new System.IO.StreamWriter("log.txt", true);
            string format = DateTime.Now.ToString() + "| ERROR: " + line;
            file.WriteLine(format);
            file.Close();
        }

        public static void info(string line)
        {
            System.IO.StreamWriter file = new System.IO.StreamWriter("log.txt", true);
            string format = DateTime.Now.ToString() + "| INFO : " + line;
            file.WriteLine(format);
            file.Close();
        }
    }
}
